import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: '学生标识',
    dataIndex: 'studentId'
   },
   {
    title: '学号',
    dataIndex: 'studentNo'
   },
   {
    title: '姓名',
    dataIndex: 'studentName'
   },
   {
    title: '院别',
    dataIndex: 'collegeName'
   },
   {
    title: '专业',
    dataIndex: 'majorName'
   },
   {
    title: '年级',
    dataIndex: 'className'
   },
   {
    title: '开始时间',
    dataIndex: 'startDate'
   },
   {
    title: '结束时间',
    dataIndex: 'endDate'
   },
   {
    title: '指导教师',
    dataIndex: 'teacherName'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: '学生标识',
    field: 'studentId',
    component: 'Input'
  },
 {
    label: '学号',
    field: 'studentNo',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: '学生标识',
    field: 'studentId',
    component: 'Input',
  },
  {
    label: '学号',
    field: 'studentNo',
    component: 'Input',
  },
  {
    label: '姓名',
    field: 'studentName',
    component: 'Input',
  },
  {
    label: '院别',
    field: 'collegeName',
    component: 'Input',
  },
  {
    label: '专业',
    field: 'majorName',
    component: 'Input',
  },
  {
    label: '年级',
    field: 'className',
    component: 'Input',
  },
  {
    label: '开始时间',
    field: 'startDate',
    component: 'Input',
  },
  {
    label: '结束时间',
    field: 'endDate',
    component: 'Input',
  },
  {
    label: '指导教师',
    field: 'teacherName',
    component: 'Input',
  },
];
